package com.kazu.index.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.kazu.utils.validator.InsertGroup;
import com.kazu.utils.validator.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 首页展示句子
 * </p>
 *
 * @author kazu
 * @since 2023/02/19 09:41
 */
@Data
@Schema(name = "IndexSentenceVo对象", description = "首页展示句子Vo")
public class IndexSentenceVo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Schema(name = "id", description = "id")
	@NotBlank(groups = {UpdateGroup.class})
	private Long id;
	
	@Schema(name = "textCn", description = "中文文本")
	@NotBlank(groups = {InsertGroup.class, UpdateGroup.class})
	private String textCn;
	
	@Schema(name = "textEn", description = "英文文本")
	@NotBlank(groups = {UpdateGroup.class})
	private String textEn;
	
	@Schema(name = "isDeleted", description = "是否删除(0-未删, 1-已删)")
	@NotBlank(groups = {InsertGroup.class, UpdateGroup.class})
	private Byte isDeleted;
	
	
}
